<%--
  Created by IntelliJ IDEA.
  User: wangtao
  Date: 2019/9/27
  Time: 11:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <jsp:useBean id="car" scope="page" class="cn.cslg.carBean"/>
    <jsp:setProperty name="car" property="*"/>
    汽车的颜色是:<jsp:getProperty name="car" property="color"/><br>
    是否有空调:
    <%
        if (car.getIsempty()==true){
            out.print("有空调");
        }
        else {
            out.print("没有空调");
        }
    %>
</body>
</html>
